const { defineConfig } = require('@vue/cli-service')
const AutoImport = require('unplugin-auto-import/webpack')
const Components = require('unplugin-vue-components/webpack')
const { ElementPlusResolver } = require('unplugin-vue-components/resolvers')
module.exports = defineConfig({
  transpileDependencies: true,
  configureWebpack:{
  plugins: [
    AutoImport({
      resolvers: [ElementPlusResolver()],
    }),
    Components({
      resolvers: [ElementPlusResolver()],
    }),
  ],
},

lintOnSave:false, // 语法提示
  chainWebpack: (config) => { // 关闭runtime-core.esm-bundler.js:4264   Feature flag __VUE_PROD_HYDRATION_MISMATCH_DETAILS__ is not explicitly defined.提示
    config.plugin('define').tap((definitions) => {
      Object.assign(definitions[0], {
        __VUE_OPTIONS_API__: 'true',
        __VUE_PROD_DEVTOOLS__: 'false',
        __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: 'false'
      })
      return definitions
    })
  },


//浏览器显示全屏覆盖的配置
    devServer:{
      client:{
        overlay:false
      }
    }
})

